package com.suny.Fence.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.io.Serializable;

@Data
@Schema(description = "新增围栏DTO")
public class FenceAddDTO  implements Serializable {
    @NotNull(message = "牧场ID不能为空")
    @Schema(description = "牧场ID")
    private Integer farmId;
    
    @NotNull(message = "圈舍ID不能为空")
    @Schema(description = "圈舍ID")
    private Integer penId;
    
    @NotBlank(message = "围栏名称不能为空")
    @Size(max = 20, message = "围栏名称最长20个字符")
    @Schema(description = "围栏名称")
    private String fenceName;
}